ARexx (47/65)

From:Alfonso Ranieri
Date:24 May 2001 at 08:31:36
Subject:Re: Timer device

ronphil@pld.com wrote:
> The "timer" and "wait" algorithm is limited to seconds and
> microseconds so this isn't workable. Is there a way to get a signal
> from the system clock itself or some way to change the resolution of
> the timers to get hours and minuets?

To wait for h hours and m minutes just wait for
h*3600+m*60 seconds. To wait till hh:mm:ss :

- convert the time to a datestamp via ParseDate()
- get the current date via GetDate()
- sub the above
- convert the datestamp to seconds to wait for

Ciao. Alfonso.

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/